<!--
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2024-06-27 20:14:10
 * @LastEditTime: 2024-06-27 20:19:31
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \html\code\2_CSS\06_复合选择器\06_属性选择器.html
 * @Description:
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>属性高选择器</title>
    <style>
        /* [title] {
            color: red;
        } */

        /* [title="atguigu1"] {
            color: red;
        } */

        /* [title^="atguigu"] {
            color: red;
        } */

        /* [title$="u"] {
            color: red;
        } */

        /* [title*="u"] {
            color: red;
        } */
    </style>
</head>

<body>
    <div title="atguigu1">尚硅谷1</div>
    <div title="atguigu2">尚硅谷2</div>
    <div title="guigu">尚硅谷3</div>
    <div title="guigu">尚硅谷4</div>
</body>

</html>